package com.chrilwe.pigpig.filesystem.common;

public enum ResultEnum {
	
	UNKNOW_ERR("未知异常", 9004400),
	SUCCESS("成功", 9004200),
	FAIL("失败", 9004500),
	FILE_UPLOAD_FINISHED("文件已上传完成", 9004201),
	ERROR_CHUNK_SIZE("错误的文件分块大小", 9004501),
	PLEASE_PREUPLOAD_FIRST("请先预上传文件", 9004502);
	
	private String name;
	private int code;
	
	private ResultEnum(String name,int code) {
		this.name = name;
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}
	
	
}
